<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AddressBook.Controllers.SearchViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Display
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Details</h2>
    <table>
        <tr>
            <td style="vertical-align: top;">
                <%=ViewData.Model.Person.FirstName %>
            </td>
        </tr>
        <tr>
            <td style="vertical-align: top;">
                <%=ViewData.Model.Person.LastName%>
            </td>
        </tr>
        <tr>
            <td style="vertical-align: top;">
                <%=string.Format("{0}<br/>{1}<br/>{2} - {3}", ViewData.Model.Person.City, ViewData.Model.Person.State, ViewData.Model.Person.Country, ViewData.Model.Person.PinCode)%>
            </td>
        </tr>
        <tr>
            <td style="vertical-align: top;">
                <%=
            Html.ActionLink("Back", "back", ViewData.Model.Key.ToString())%>
            </td>
        </tr>
    </table>
</asp:Content>
